package com.bdqn.zhang.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <Description> <br>
 *
 * @author tao<br>
 * @version 1.0<br>
 * @taskId: <br>
 * @createDate 2019/09/17 16:00 <br>
 * @see com.bdqn.zhang.controller <br>
 */
@Controller
public class UserController {

    @RequestMapping("/index")
    public String show(Model model) {
        model.addAttribute("name","admin");
        return "user/main";
    }
}
